﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShenLanCMS.Models
{
    /// <summary>
    /// 内容模板
    /// </summary>
    public class TempContent
    {
        [System.ComponentModel.DataAnnotations.Key]
        public Guid TempContentID { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [Display(Name="内容")]
        [Required(ErrorMessage = "请填写{0}")]
        [DataType(DataType.MultilineText)]
        [StringLength(1000000)]
        public string Content { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        [Display(Name="添加时间")]
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 是否默认
        /// </summary>
        [Display(Name="是否默认")]
        public bool IsDefault { get; set; }
    }
}
